package values.building
{
import core.Language;

/**
 * FinalBuildFriendCostPositionValue
 * @author jliang
 *
 */
public class FinalBuildFriendCostPositionValue
{	
	[Data(type="field", mapping="@index")]
	public var index:int = 1;
	
	[Data(type="field", mapping="@name")]
	public var baseNameKey:String;
	
	public function get name():String
	{
		return Language.getText(baseNameKey);
	}
	
	[Data(type="field", mapping="@cash_cost")]
	public var cashCost:Number;
	
	public var playerID:String;
	
	public function get isEmpty():Boolean
	{
		return playerID == null || playerID == "";
	}
	
	public function clone():FinalBuildFriendCostPositionValue
	{
		var vo:FinalBuildFriendCostPositionValue = new FinalBuildFriendCostPositionValue();
		vo.index = index;
		vo.baseNameKey = baseNameKey;
		vo.cashCost = cashCost;
		vo.playerID = playerID;
		return vo;
	}
}
}